show that the points are vertices of a right triangle